package com.zhoushihao.class0815;

import java.util.Scanner;

public class Changeong {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String s = sc.nextLine();
            String[] str1 = s.split(",");
            if (str1[0].endsWith("ong") && str1[1].endsWith("ong.")) {
                String[] words = str1[1].split(" ");
                words[words.length - 1] = "zhong.";
                words[words.length - 2] = "ben";
                words[words.length - 3] = "qiao";
                str1[1] = String.join(" ", words);
                s = String.join(",", str1);
                System.out.println(s);
            } else {
                System.out.println("Skipped");
            }
        }
    }
}
